package com.jy.rhin.model.body.jiankangtj;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import lombok.Data;

/**
 * 病床史
 * @author shenguangyang
 */
@Data
public class BingChuangS {
    //建床日期 eg: 20171121
    @XPath(path = "/effectiveTime/low/@value"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE06_00_046_00))
    String jianChuangRQ;

    // 撤床日期 eg: 20171121
    @XPath(path = "/effectiveTime/high/@value"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE06_00_045_00))
    String cheChuangRQ;

    // 医疗机构名称
    @XPath(path = "/performer/assignedEntity/representedOrganization/name/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE08_10_013_00))
    String yiLiaoJGMC;

    // 曾病床病案号
    @XPath(path = "/entryRelationship/observation/code[@code='DE01.00.004.00'][@codeSystem='2.16.156.10011.2.2.1']/../value/@value"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE01_00_004_00))
    String cengBingCBAH;

    // 家庭病床建立原因
    @XPath(path = "/entryRelationship/observation/code[@code='DE06.00.047.00'][@codeSystem='2.16.156.10011.2.2.1']/../value/text()",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE06_00_047_00))
    String bingChuangJLYY;
}
